package com.CST.vo.ys;

import com.CST.converter.LocalDateTimeConverter;
import com.CST.converter.SubjectConverter;
import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class YsBusinessSubjectVO {

    @ExcelIgnore
    private Long id;

    @ExcelIgnore
    private Long subjectId;

    @ExcelProperty("预算科目名称")
    @ApiModelProperty("预算科目名称")
    private String subjectName;

    @ExcelProperty("预算科目编码")
    @ApiModelProperty("预算科目编码")
    private String subjectCode;

    @ExcelProperty("用友科目编码")
    @ApiModelProperty("用友科目编码")
    private String yySubjectCode;

    @ExcelProperty("用友科目名称")
    @ApiModelProperty("用友科目名称")
    private String yySubjectName;

    @ExcelProperty("用友项目编号")
    @ApiModelProperty("用友项目编号")
    private String yyProject;

    @ExcelProperty("备注")
    @ApiModelProperty("备注")
    private String remark;

    @ExcelProperty(value = "状态", converter = SubjectConverter.class)
    @ApiModelProperty("状态")
    private Boolean flag;

    @ExcelProperty(value = "创建时间", converter = LocalDateTimeConverter.class)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @ApiModelProperty("年")
    @ExcelProperty("年")
    private Integer year;
}
